<@master template="/common/master"  title="首页-p2p金融">
    <@include file="/common/head"/>
  	<@head title="设置登陆密码" dColor="dlHeader"/>
    <form id="subForm" role="form" action="/member/submit/setLoginPasswrod" class="form-horizontal action-ajax-form" method="POST">
    <div class="dlBox">
    	<p id="errorText" class="wrong">${errorMsg}</p>
        <ul class="dllist">
            <li><span class="dlIco icon"></span><input name="oldPW" type="password" placeholder="输入原始密码"></li>
            <li><span class="dlIco icon"></span><input name="newPW" type="password" placeholder="输入新密码"></li>
            <li><span class="dlIco icon"></span><input name="newRepreatPW" type="password" placeholder="再次输入新密码"></li>
        </ul>
    </div>
    <div class="btnBox">
    	<input id="subBtn" type="button" value="确认修改"  class="tzBtn"/>
        <p class="c999 tac mt10">为保障您的资金安全，认证后只能绑定与实名为同一个人的银行卡</p>
    </div>
    </form>
</@master>
<@js>
    $(document).ready(function(){
    	$('#subBtn').bind("click",function(){
    		var oldPW=$('#subForm input[name="oldPW"]').val();
    		if(!oldPW){
    			$('#errorText').text('原始密码不能为空');
    			return false;
    		}
    		var newPW=$('#subForm input[name="newPW"]').val();
    		if(!newPW){
    			$('#errorText').text('新密码不能为空');
    			return false;
    		}
    		var newRepreatPW=$('#subForm input[name="newRepreatPW"]').val();
    		if(!newRepreatPW){
    			$('#errorText').text('请再次输入新密码');
    			return false;
    		}
    		if(newPW != newRepreatPW ){
    			$('#errorText').text('新密码输入不一致');
    			return false;
    		}
    		$('#subForm').submit();
    	});
	});
</@js>
<@jsRender/>